<!DOCTYPE XHTML PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml1/xhtml1-strict.dtd">
<?php include('./includes/config.inc') ?>
<html>
<head>
<title>Login to C-cramp</title>
<link rel="stylesheet" type="text/css" href="themes/<?php echo("$theme") ?>/default.css" />
</head>
<body><div style="position: relative; align: center; vertical-align: middle; text-align: center; display: block; width: 100%; height: 400px; ">
<span style="position: relative; align: center; vertical-align: middle; display: inline;"><?php
if ($_REQUEST[login] === 'fail') {
   echo('<h3>Login Failed!  Your username and password don\'t seem to match!  Try again.</h3><br />');
} else if ( ($do === 'logout') || ($_REQUEST['do'] === 'logout') ) {
   echo('Logout successful.<br />');
}
?>
If there's no one coming in after you, don't forget to <a href="do/m3u_make.php" >start a playlist</a>!
<br />
<br />
<form name="login" action="./" method="post" target="_top">
<br />
<table style="position: relative; text-align: left; vertical-align: middle; display: inline; ">
<tr>
   <td colspan="2" style="background-color: white;">Login</td>
</tr>
<tr>
   <td style="background-color: white;">Username: </td>
   <td style="background-color: white;"><input type="text" name="username" /></td>
</tr>
<tr>
   <td style="background-color: white;">Password: </td>
   <td style="background-color: white;"><input type="password" name="password" /></td>
</tr>
<tr>
   <td style="background-color: white;"><input type="hidden" name="did" value="login" /><input type="hidden" name="mode" value="home" /><input type="hidden" name="do" value="login" /></td>
   <td style="background-color: white;"><input type="submit" value="log in" /></td>
</tr>
</table>
<br />
If you don't have a login name, you can <a href="./mode/addUsr.php">create one</a>.
</form>
</span>
</div></body>
</html>